package com.lovo.homework7_20Cut;

import java.util.Properties;

public class Test {
    public static void main(String[] args) {
        String str1 = "http://www.lovo.com/index?name=aaaa&age=20&xinbie=男";
        String str2 = str1.substring(str1.lastIndexOf("?")+1, str1.length());

        String[] str3 = str2.split("&");
        Properties ppt = new Properties();

        for (String str4 : str3) {
            String[] str5=str4.split("=");
           ppt.setProperty(str5[0],str5[1]);
        }
        util.SaveProperty.storeProperty("1.properties",ppt);
    }
}
